package com.ruoyi.boss.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户详情-个人信息对象 user_basic_info
 * 
 * @author rui
 * @date 2025-08-18
 */
public class UserBasicInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 头像URL */
    @Excel(name = "头像URL")
    private String avatarUrl;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String phone;

    /** 注册渠道 */
    @Excel(name = "注册渠道")
    private Long registerChannel;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 上次登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 上次登录方式 */
    @Excel(name = "上次登录方式")
    private Long lastLoginMethod;

    /** 上次登录大屏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次登录大屏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastScreenLoginTime;

    /** 上次登录大屏方式 */
    @Excel(name = "上次登录大屏方式")
    private Long lastScreenLoginMethod;

    /** 最近下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastOrderTime;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    /** 可用余额 */
    @Excel(name = "可用余额")
    private BigDecimal availableBalance;

    /** 冻结中余额 */
    @Excel(name = "冻结中余额")
    private BigDecimal frozenBalance;

    /** 可开发票金额 */
    @Excel(name = "可开发票金额")
    private BigDecimal invoiceAvailable;

    /** 行程未开票金额 */
    @Excel(name = "行程未开票金额")
    private BigDecimal unpaidTripAmount;

    /** 用户级别 */
    @Excel(name = "用户级别")
    private String userLevel;

    /** 成长值 */
    @Excel(name = "成长值")
    private Long growthValue;

    /** 总出行里程(公里) */
    @Excel(name = "总出行里程(公里)")
    private BigDecimal totalMileage;

    /** 本月出行里程(公里) */
    @Excel(name = "本月出行里程(公里)")
    private BigDecimal monthlyMileage;

    /** 总充值金额 */
    @Excel(name = "总充值金额")
    private BigDecimal totalRecharge;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal refundAmount;

    /** 总订单支付金额 */
    @Excel(name = "总订单支付金额")
    private BigDecimal totalOrderPayment;

    /** 本月订单支付金额 */
    @Excel(name = "本月订单支付金额")
    private BigDecimal monthlyOrderPayment;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setRegisterChannel(Long registerChannel) 
    {
        this.registerChannel = registerChannel;
    }

    public Long getRegisterChannel() 
    {
        return registerChannel;
    }

    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }

    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }

    public void setLastLoginMethod(Long lastLoginMethod) 
    {
        this.lastLoginMethod = lastLoginMethod;
    }

    public Long getLastLoginMethod() 
    {
        return lastLoginMethod;
    }

    public void setLastScreenLoginTime(Date lastScreenLoginTime) 
    {
        this.lastScreenLoginTime = lastScreenLoginTime;
    }

    public Date getLastScreenLoginTime() 
    {
        return lastScreenLoginTime;
    }

    public void setLastScreenLoginMethod(Long lastScreenLoginMethod) 
    {
        this.lastScreenLoginMethod = lastScreenLoginMethod;
    }

    public Long getLastScreenLoginMethod() 
    {
        return lastScreenLoginMethod;
    }

    public void setLastOrderTime(Date lastOrderTime) 
    {
        this.lastOrderTime = lastOrderTime;
    }

    public Date getLastOrderTime() 
    {
        return lastOrderTime;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setAvailableBalance(BigDecimal availableBalance) 
    {
        this.availableBalance = availableBalance;
    }

    public BigDecimal getAvailableBalance() 
    {
        return availableBalance;
    }

    public void setFrozenBalance(BigDecimal frozenBalance) 
    {
        this.frozenBalance = frozenBalance;
    }

    public BigDecimal getFrozenBalance() 
    {
        return frozenBalance;
    }

    public void setInvoiceAvailable(BigDecimal invoiceAvailable) 
    {
        this.invoiceAvailable = invoiceAvailable;
    }

    public BigDecimal getInvoiceAvailable() 
    {
        return invoiceAvailable;
    }

    public void setUnpaidTripAmount(BigDecimal unpaidTripAmount) 
    {
        this.unpaidTripAmount = unpaidTripAmount;
    }

    public BigDecimal getUnpaidTripAmount() 
    {
        return unpaidTripAmount;
    }

    public void setUserLevel(String userLevel) 
    {
        this.userLevel = userLevel;
    }

    public String getUserLevel() 
    {
        return userLevel;
    }

    public void setGrowthValue(Long growthValue) 
    {
        this.growthValue = growthValue;
    }

    public Long getGrowthValue() 
    {
        return growthValue;
    }

    public void setTotalMileage(BigDecimal totalMileage) 
    {
        this.totalMileage = totalMileage;
    }

    public BigDecimal getTotalMileage() 
    {
        return totalMileage;
    }

    public void setMonthlyMileage(BigDecimal monthlyMileage) 
    {
        this.monthlyMileage = monthlyMileage;
    }

    public BigDecimal getMonthlyMileage() 
    {
        return monthlyMileage;
    }

    public void setTotalRecharge(BigDecimal totalRecharge) 
    {
        this.totalRecharge = totalRecharge;
    }

    public BigDecimal getTotalRecharge() 
    {
        return totalRecharge;
    }

    public void setRefundAmount(BigDecimal refundAmount) 
    {
        this.refundAmount = refundAmount;
    }

    public BigDecimal getRefundAmount() 
    {
        return refundAmount;
    }

    public void setTotalOrderPayment(BigDecimal totalOrderPayment) 
    {
        this.totalOrderPayment = totalOrderPayment;
    }

    public BigDecimal getTotalOrderPayment() 
    {
        return totalOrderPayment;
    }

    public void setMonthlyOrderPayment(BigDecimal monthlyOrderPayment) 
    {
        this.monthlyOrderPayment = monthlyOrderPayment;
    }

    public BigDecimal getMonthlyOrderPayment() 
    {
        return monthlyOrderPayment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("avatarUrl", getAvatarUrl())
            .append("userName", getUserName())
            .append("phone", getPhone())
            .append("registerChannel", getRegisterChannel())
            .append("registerTime", getRegisterTime())
            .append("lastLoginTime", getLastLoginTime())
            .append("lastLoginMethod", getLastLoginMethod())
            .append("lastScreenLoginTime", getLastScreenLoginTime())
            .append("lastScreenLoginMethod", getLastScreenLoginMethod())
            .append("lastOrderTime", getLastOrderTime())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("availableBalance", getAvailableBalance())
            .append("frozenBalance", getFrozenBalance())
            .append("invoiceAvailable", getInvoiceAvailable())
            .append("unpaidTripAmount", getUnpaidTripAmount())
            .append("userLevel", getUserLevel())
            .append("growthValue", getGrowthValue())
            .append("totalMileage", getTotalMileage())
            .append("monthlyMileage", getMonthlyMileage())
            .append("totalRecharge", getTotalRecharge())
            .append("refundAmount", getRefundAmount())
            .append("totalOrderPayment", getTotalOrderPayment())
            .append("monthlyOrderPayment", getMonthlyOrderPayment())
            .toString();
    }
}
